package com.xingxue.shopping.model.service.impl;

import java.util.List;

import com.xingxue.shopping.model.dao.IProducerDao;
import com.xingxue.shopping.model.dao.impl.ProducerDaoImpl;
import com.xingxue.shopping.model.persist.Producer;
import com.xingxue.shopping.model.service.IProducerSerivce;

public class ProducerServiceImpl implements IProducerSerivce {

	private IProducerDao dao;
	
	public ProducerServiceImpl()
	{
		dao=new ProducerDaoImpl();
	}
	@Override
	public List<Producer> getAll() {
		// TODO Auto-generated method stub
		return dao.getAll();
	}

	@Override
	public Integer addProducer(Producer p) {
		// TODO Auto-generated method stub
		return dao.addProducer(p);
	}

}
